{@ Context::addJsFile("./common/js/jquery.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/js_app.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/common.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/xml_handler.js", true, '', -100000) }
{@ Context::addJsFile("./common/js/xml_js_filter.js", true, '', -100000) }
<!--%import("js/mboard.js")-->
<!--%import("css/mboard.css")-->
<div class="hx h2">
	<h2>{$oDocument->getTitle()}</h2>
</div>
<div class="co">
		<!--썸네일 이미지를 불러옴-병웅-->
		<!--@foreach($oDocument->getUploadedFiles() as $key => $file)-->
			<div style="border:1px solid #ddd; text-align:center;"><img src="{getUrl('')}{$file->download_url}" class="read_body_img"/></div>
		<!--@end-->

		<!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
		<form action="./" method="get" class="ff" onsubmit="return procFilter(this, input_password)">
		<input type="hidden" name="mid" value="{$mid}" />
		<input type="hidden" name="page" value="{$page}" />
		<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
			<label for="cpw">{$lang->msg_is_secret}</label>
			<input type="password" name="password" id="cpw" />
			<input type="submit" value="{$lang->cmd_input}" class="bn dark" />
		</form>
		<!--@else-->
		
		<center>
		<table class="read_rest_table">
		<tr>
			<th style="border-top:2px solid #eee;">최소 주문 가격</th>
			<td style="border-top:2px solid #eee;">{number_format($oDocument->getExtraValue(1))} 원</td>
		</tr>
		<tr>
			<th style="border-top:1px solid #eee;">결제 방식</th>
			<td style="border-top:1px solid #eee;">
				<!--@if($oDocument->getExtraValue(3)=="현금")-->
					<img src="./images/big_cash.png" width="16" height="16" style="vertical-align:text-bottom" />현금
				<!--@else if($oDocument->getExtraValue(3)=="카드")-->
					<img src="./images/big_card.png" width="16" height="16" style="vertical-align:text-bottom" />카드
				<!--@else if($oDocument->getExtraValue(3)=="현금|@|카드")-->
					<img src="./images/big_cash.png" width="16" height="16" style="vertical-align:text-bottom" />현금 &
					<img src="./images/big_card.png" width="16" height="16" style="vertical-align:text-bottom" />카드
				<!--@end-->
			</th>
		</tr>
		<tr>
			<th style="border-top:1px solid #eee;">영업 시간</th>
			<td style="border-top:1px solid #eee;">{$oDocument->getExtraValue(6)}~{$oDocument->getExtraValue(7)}</td>
		</tr>
		<tr>
			<th style="border-top:1px solid #eee;border-bottom:2px solid #eee;">음식점 전화번호</th>
			<td style="border-top:1px solid #eee;border-bottom:2px solid #eee;">{$oDocument->getExtraValue(10)}</td>
		</tr>
		</table>
		</center>
		
		{$oDocument->getContent(false)}
		<!--@end-->
</div>
<div class="bna">
	<span class="fr"><a href="{getUrl('document_srl','')}" class="bn white">상점 목록 보기</a></span>
</div>
<div id="skip_co"></div>
<div class="hx h3">
</div>

<div style="height:1px;overflow:hidden;background:#ddd"></div>
<script type="text/javascript">
//<![CDATA[
jQuery(function($){
	$('.co .mm').next().hide();
	$('.mm').click(function(){ $(this).hide().next().show();});
	$('.tgo').removeClass('open');
	$('.tg').click(function(){
		$(this).parent('.h3').next('.tgo').toggleClass('open');
	});
	var loaded = false;
	$('.tgr').click(function(){
		if(!loaded) {
			loaded = true;
			{@ $lastpage = 1; }
			{@ $temp = $oDocument->getComments() }
			<!--@if($oDocument->comment_page_navigation)-->
			{@ $lastpage = $oDocument->comment_page_navigation->last_page }
			<!--@endif-->
			loadPage({$oDocument->document_srl}, {$lastpage});
		}
	});
	
});
//]]>
</script>

{@ // 상점nickname으로 검색해서 해당 음식점의 메뉴가 보이도록함 - 병웅
			
			$oDocumentModel = &getModel('document');

            // 목록을 구하기 위한 대상 모듈/ 페이지 수/ 목록 수/ 페이지 목록 수에 대한 옵션 설정
            $args->module_srl = 55; 
            
            // 검색과 정렬을 위한 변수 설정
            $args->search_target = "nick_name"; 
            $args->search_keyword = $oDocument->getNickName();

            // 만약 카테고리가 있거나 검색어가 있으면list_count를 search_list_count 로 이용
            if($args->category_srl || $args->search_keyword) $args->list_count = $this->search_list_count;

            // 일반 글을 구해서 context set
            $output = $oDocumentModel->getDocumentList($args, $this->except_notice);
            Context::set('document_list', $output->data);
            Context::set('total_count', $output->total_count);
            Context::set('total_page', $output->total_page);
            Context::set('page', $output->page);
            Context::set('page_navigation', $output->page_navigation);
}

<!--#include("../yamnyam_mobile_foodlist/_list.html")-->
<div>
<a style="color:#fff">asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br>asdfasdf<br></a>
</div>